<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7">
<link rel="shortcut icon" href="<?php echo brd_url('images/favicon.ico');?>" />
<link rel="stylesheet" type="text/css" href="<?php echo brd_url('css/comon.css')?>" />
<meta name="author" content="<?php echo lang('common_admin_author');?>" />
<title><?php echo lang('common_admin_title');?></title>
</head>
<body style="background-color:#427fb8">
<div class="admin_main_nr_dbox">
<div class="pagetit_msg">
	<div class="ptit"><?php echo lang('common_admin_title')?></div>
  <div class="clear"></div>
</div>
<div class="toptit">系统提示</div>
<div class="showmsg">
	  <div class="left <?php if($msg_type=='0'):?>m0<?php elseif($msg_type=='1'):?>m1<?php else:?>m2<?php endif;?>">
	  </div>
	   <div class="right">
	   <h2><?php echo $msg_detail?></h2>
	   <div id="redirectionMsg"><?php if($auto_redirect):?>如果您不做出选择，将在 <span id="spanSeconds"><?php echo $seconds?></span> 秒后跳转到第一个链接地址。<?php endif;?></div>
	   <ul style="margin:0;list-style:none" >
        <?php foreach($links as $link):?>
		<li><a href="<?php echo $link['href']?>" <?php if(isset($link['target'])):?> target="<?php echo $link['target']?>"<?php endif;?>><?php echo $link['text'];?></a></li>
        <?php endforeach;?>
		</ul>
	   </div>
	   <div class="clear"></div>
</div>
</div>
<?php if($auto_redirect):?>
<script language="JavaScript">
<!--
var seconds = <?php echo $seconds?>;
var defaultUrl = "<?php echo $default_url?>";

onload = function()
{
  if (defaultUrl == 'javascript:history.go(-1)' && window.history.length == 0)
  {
    document.getElementById('redirectionMsg').innerHTML = '';
    return;
  }

  window.setInterval(redirection, 1000);
}
function redirection()
{
  if (seconds <= 0)
  {
    window.clearInterval();
    return;
  }

  seconds --;
  document.getElementById('spanSeconds').innerHTML = seconds;

  if (seconds == 0)
  {
    window.clearInterval();
    location.href = defaultUrl;
  }
}
//-->
</script>
<?php endif;?>
</body>
</html>